import { Injectable } from '@angular/core';
import { Observable} from 'rxjs';
import 'rxjs/add/operator/toPromise';
import { Http, Response, RequestOptions, Headers} from '@angular/http';


@Injectable()
export class ProblemsService {

  constructor(
    private http:Http,
  ) { }

  testGet (): Observable<any>{
    return this.http.get('http://jsonplaceholder.typicode.com/posts/1');
  }

}

